package cn.hd.service;

import cn.hd.entity.Fileupload;
import cn.hd.entity.FileuploadLicense;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public interface FileuploadSevice {
    //多条件分页查询
    public PageInfo<Fileupload> selectAllFenYeFileupload(Map map,int pageNum,int pageSize);

    //添加资质文件
    public int addFileupload(Fileupload fileupload);

    //根据编号查询资质文件
    public Fileupload selectFileuploadById(long fileid);

    //修改资质文件
    public int updateFileupload(Fileupload fileupload);

    //删除资质文件
    public int deleteFileupload(long fileid);

    //删除之前查询该文件是否被占用
    public FileuploadLicense selectFileuploadLicenseByFid(long fileid);
}
